package com.hc.vo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
public class AddRepairRegistrationVO {
    //报修对象类型
    @NotBlank
    private String repairObjType;
    //报修对象ID
    @NotBlank
    private String repairObjId;
    //就是报修类型的settingType;
    @NotBlank
    private String repairType;
    @NotBlank
    private String repairName;
    @Digits(integer = 12, fraction = 0)
    private String tel;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appointmentTime;
    @NotBlank
    private String context;
}
